package com.bawei.yangzongcai___chenmei.BlankFragment.TableLayoution;


import android.content.Context;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.bawei.yangzongcai___chenmei.JavaClass.JavaJinxi;
import com.bawei.yangzongcai___chenmei.JavaClass.JavaLianxi;
import com.bawei.yangzongcai___chenmei.MVC.BsaeFragment;
import com.bawei.yangzongcai___chenmei.R;
import com.blankj.utilcode.util.SizeUtils;
import com.bumptech.glide.Glide;
import com.youth.banner.Banner;
import com.youth.banner.BannerConfig;
import com.youth.banner.Transformer;
import com.youth.banner.loader.ImageLoader;

import java.util.ArrayList;
import java.util.List;


public class BlankFragmentTableLayout1 extends BsaeFragment {


    private Banner bannertable1;
    List<String> javabanner;
    @Override
    public int bandLayout() {
        return R.layout.fragment_blank_fragment_table_layout1;
    }

    @Override
    public void initView() {

        bannertable1 = findbandid(R.id.bannertable1);
    }

    @Override
    public void initDate() {
        javabanner = new ArrayList<>();


        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/23/small1209362ROAM1595477376.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/23/small120451ATgzH1595477091.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/27/small115007ygAre1595821807.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/30/small121805MXh9v1596082685.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/25/small1117476XNbe1595647067.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/22/small1429273AcLE1595399367.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/22/small142427If8k21595399067.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/23/small121247x13v21595477567.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/22/small134703Qjifp1595396823.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/22/small133344YZpXP1595396024.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/20/small145151omXuw1595227911.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/20/small144044kgpEh1595227244.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/20/small143755vXfub1595227075.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/20/small1429547yvHf1595226594.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/20/small142030SU59q1595226030.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/20/small143032X5SCN1595226632.jpg");
        javabanner.add("https://www.4kbizhi.com/d/file/2020/07/20/small141701RUy1k1595225821.jpg");
        bannertable1.setBannerAnimation(Transformer.CubeOut);
        bannertable1.setIndicatorGravity(BannerConfig.CENTER);
        bannertable1.setImages(javabanner);
        bannertable1.setBannerStyle(BannerConfig.CIRCLE_INDICATOR);
        bannertable1.setImageLoader(new ImageLoader() {
            @Override
            public void displayImage(Context context, Object path, ImageView imageView) {
                Glide.with(context).load(path).into(imageView);
            }
        }).start();



    }
}
